package com.thewell79.areadiary.activity;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.ImageFormat;
import android.graphics.YuvImage;
import android.hardware.Camera;
import android.os.Build;
import android.os.Bundle;
import android.renderscript.Allocation;
import android.renderscript.Element;
import android.renderscript.RenderScript;
import android.renderscript.ScriptIntrinsicBlur;
import android.view.Display;
import android.view.MenuItem;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.WindowManager;

import com.github.ksoichiro.android.observablescrollview.ObservableRecyclerView;
import com.thewell79.areadiary.BaseFragmentContainerActivity;
import com.thewell79.areadiary.R;

import java.io.IOException;

/**
 * Created by THEWELL-LOBBY on 2015-04-30.
 */
public class EditActivity extends BaseFragmentContainerActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_edit);

        getSupportActionBar().setTitle("글쓰기");
        getSupportActionBar().setSubtitle("장소명");

        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        getSupportActionBar().setDisplayShowHomeEnabled(true);

    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        int itemid = item.getItemId();

        if (itemid == android.R.id.home) {
            this.finish();
        }
        return super.onOptionsItemSelected(item);
    }

}
